import 'package:flutter/material.dart';

class ZoomableAndDraggableComponent extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return InteractiveViewer(
      boundaryMargin: EdgeInsets.all(double.infinity),
      minScale: 0.1,
      maxScale: 5.0,
      child: Container(
        width: 200.0,
        height: 200.0,
        color: Colors.blue,
        child: Center(
          child: Text(
            'Zoomable and Draggable Component',
            style: TextStyle(fontSize: 20.0, color: Colors.white),
          ),
        ),
      ),
    );
  }
}

void main() {
  runApp(MaterialApp(
    home: Scaffold(
      appBar: AppBar(
        title: Text('Zoomable and Draggable Component Example'),
      ),
      body: Center(
        child: ZoomableAndDraggableComponent(),
      ),
    ),
  ));
}
